package stours

import (
	"github.com/gin-contrib/cors"
	"github.com/gin-gonic/gin"
	"release/hars"
)

func Init() *gin.Engine {
	r := gin.Default()
	r.Static("/static", "./static")
	r.Use(cors.Default())
	r.POST("add", hars.Add)
	r.GET("del", hars.Del)
	r.GET("list", hars.List)

	return r
}
